Viacheslav Eremin | Visual Studio 2010 and .NET Framework 4 Training Kit | ASP.NET MVC Helpers, Forms and Validation
 
 
 


Hands-On Lab

ASP.NET MVC Helpers, Forms and Validation



Lab version:1.1.0

Last updated:10/13/2011


Contents

Overview

Exercise 1: Creating the Store Manager controller and its Index view

Task 1 � Creating the StoreManagerController

Task 2 � Customizing the StoreManager Index

Task 3 � Creating the Index View

Task 4 � Customizing the scaffold of the Index View

Task 5 � Running the Application

Exercise 2: Adding an HTML Helper

Task 1 � Extending the HTML Helper

Task 2 � Registering the HTML Helper

Task 3 � Truncating Text in the Page

Task 4 � Running the Application

Exercise 3: Creating the Edit View

Task 1 � Creating the StoreManagerViewModel

Task 2 � Implementing the HTTP-GET Edit Action Method

Task 3 � Creating the Edit View

Task 4 � Customizing the Edit View

Task 5 � Running the Application

Task 6 � Creating a Shared Album Editor Template

Task 7 � Implementing drop-downs on the Album Editor Template

Task 8 � Running the Application

Task 9 � Implementing the HTTP-POST Edit action method

Task 10 � Running the Application

Exercise 4: Adding a Create View

Task 1 � Implementing the HTTP-GET Create action method

Task 2 � Adding the Create View

Task 3 � Running the Application

Task 4 � Implementing the HTTP-POST Create Action Method

Task 5 � Running the Application

Exercise 5: Handling Deletion

Task 1 � Implementing the HTTP-GET Delete Action Method

Task 2 � Running the Application

Task 3� Implementing the HTTP-POST Delete Action Method

Task 4 � Deleting on Cascade

Task 5 � Running the Application

Exercise 6: Adding Validation

Task 1 � Adding Data Annotations

Task 2 � Running the Application

Task 3 � Adding Client-Side (AJAX) validation

Task 4 � Running the Application

Summary